import turtle

turtle.hideturtle()
diretion = turtle.textinput("请输入绘画方向", "朝左绘画（L）或者朝右绘画（R）？")

if diretion.upper() == "L":
    turtle.write("向左绘画。", font=("宋体", 14, "bold"))

elif diretion.upper() == "R":
    turtle.write("向右绘画。", font=("宋体", 14, "bold"))

else:
    pass